<template>
  	<div id="testScores">
  		<header>
            <div class="title">
                  <img src="../../image/retern_wrong_topic.png" alt="" width="33" height="33" @click="goBack()">
                  考试成绩
            </div>
            <img src="../../image/bg_wrong_topic.png" alt="">
            <div class="scores">
            	<b>{{10 * $route.query.rightNum}}</b>分 &nbsp;错题{{$route.query.wrongNum}}题
            </div>
        </header>
        <div>
        	<a @click='lookWrong'>
	        	<img src="../../image/icon_wrong_topic.png" width="35" height="35" alt="">
	        	<div>
	        		<b>查看错题</b>
	        		<div>做错{{$route.query.wrongNum}}道题</div>
	        	</div>
	        	<span></span>
	        </a>

        </div>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		components: {

		},
		methods: {
			goBack() {
				this.$router.push({path:'/dailyProblem'})
			},
            //查看错题
            lookWrong() {
                if(this.$route.query.wrongNum > 0) {
                    this.$router.push({name:'doProblem',query: {typeid:  this.$route.query.typeid,wrongList: this.$route.query.wrongList}});
                }
            }

		},
		created() {
			// this.$api.get("topics", null, r => {
			// 	this.list = [1,2,3];
			// })
		}
	}
</script>
<style lang="scss">
</style>
